package calculate;

/**
 * This class implements the unary operation reciprocal.
 * 
 * output = 1 / input
 * 
 * @author Jacky Xu
 *
 */
public class Reciprocal implements UnaryOperator {
	@Override
	public double calculate(double a) {
		return 1 / a;
	}
}
